#include "mainwindow.h"
#include <QApplication>
#include <QObject>

#include <unistd.h>

#include "MeasurementInterface.h"
#include "ResponseTest.h"


int main(int argc, char *argv[])
{
//    QApplication a(argc, argv);
//    MainWindow w;
//    w.show();
    MeasurementInterface measurementInterface;
    ResponseTest        responseTest;
    QObject::connect(&measurementInterface,
                     &MeasurementInterface::MesurementCalResponse,
                     &responseTest,
                     &ResponseTest::SlotMesurementCalResponse,
                     Qt::DirectConnection);

    for(int i = 0; i < 10000; i++) {
        measurementInterface.MesurementCalRequest(0, 0);
        sleep(1);
    }


//    return a.exec();
    return 0;
}
